﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.IRepository
{
    public interface IRepository<T> where T:class,new ()
    {
        int Add(T model);
        int Delete(T model);
        int Update(T model);
        List<T> GetModel(Expression<Func<T, bool>> whereExpression);
    }
}
